package com.licheedev.glideext;

import android.os.Bundle;
import android.widget.ImageView;
import androidx.appcompat.app.AppCompatActivity;
import com.bumptech.glide.Glide;

public class MainActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);

        ImageView imageView = findViewById(R.id.image);
        ImageView imageView2 = findViewById(R.id.image2);

        String text = "hfasdfasdfasdfasdfasdfasdAwQIBwAA";
        String url = "https://fasdfa.fasdfa.com/upload/ueditor/image/20210129/1611906432146647.jpg";
        //Glide.with(this).load(url).into(imageView);

        //Glide.with(this)
        //    .load(QrCode.wrap("dark souls")
        //        .setLogo(url)
        //        .setLogoPercent(0.1f)
        //    )
        //    .into(imageView);

        Glide.with(imageView).load("https://fasdfa.fasdfads.life/image/homeLaundry.png").into(imageView);
        //Glide.with(imageView2)
        //    .load(QrCode.wrap(
        //            "https://test-cy.bangkehui.com/cashier.html?tradeNo=100200015884M10457366029233&payMoney=1")
        //        .H()
        //        .setMargin(0))
        //    .into(imageView);
        ////
        //Glide.with(imageView2)
        //    .load(QrCode.wrap(
        //            "http://api.t.antretail.cn/api/machinesale/sale/ocrr?m=100200015884&a=1&c=f&s=")
        //        .H()
        //        .setMargin(0))
        //    .into(imageView2);
    }
}
